const { VITE_HIDE_HOME } = import.meta.env;
const Layout = () => import("@/layout/index.vue");

export default {
  path: "/",
  name: "Home",
  component: Layout,
  redirect: "/welcome",
  meta: {
    icon: "ep:home-filled",
    title: "首页",
    rank: 0
  },
  children: [
    {
      path: "/welcome",
      name: "Welcome",
      component: () => import("@/views/welcome/index.vue"),
      meta: {
        title: "首页",
        showLink: VITE_HIDE_HOME === "true" ? false : true,
        isBaseMenu: false
      }
    },
    {
      path: "/app1-about",
      name: "app1-about",
      component: () => import("@/views/app1/home.vue"),
      meta: {
        title: "子应用首页",
        showLink: VITE_HIDE_HOME === "true" ? false : true,
        isBaseMenu: false
      }
    }
    // {
    //   path: "/text",
    //   name: "vue2-text",
    //   meta: {
    //     title: "子应用文本",
    //     showLink: true,
    //     isBaseMenu: true, //子应用
    //     subAppUrl: "/about" // 子应用 about
    //   }
    // }
  ]
} satisfies RouteConfigsTable;

// 建议子应用路由改为 哈希
